package com.clwl.supervise.superviseapp.entity.supervise;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
    * 问题整改
    */
@Data
@TableName(value = "JG_RECTIFICATION_IMAGE")
//@KeySequence(value = "JG_RECTIFICATION_IMAGE_SEQ")
public class JgRectificationImage implements Serializable {


    @TableId(value = "ID", type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 问题整改ID
     */
    @TableField(value = "RECTIFICATION_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long rectificationId;

    /**
     * 图片地址
     */
    @TableField(value = "FILE_URL")
    private String fileUrl;

    /**
     * 图片缩略图地址
     */
    @TableField(value = "FILE_TH_URL")
    private String fileThUrl;

    /**
     * 创建时间（发件时间）
     */
    @TableField(value = "CREATE_TIME")
    private Date createTime;

    /**
     * 创建人id
     */
    @TableField(value = "CREATOR_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long creatorId;

    /**
     * 创建人姓名
     */
    @TableField(value = "CREATOR_NAME")
    private String creatorName;

    /**
     * 修改时间
     */
    @TableField(value = "UPDATE_TIME")
    private Date updateTime;

    /**
     * 修改人id
     */
    @TableField(value = "UPDATE_USER_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long updateUserId;

    /**
     * 修改人姓名
     */
    @TableField(value = "UPDATE_USER_NAME")
    private String updateUserName;

    /**
     * 删除时间
     */
    @TableField(value = "DELETE_TIME")
    private Date deleteTime;

    /**
     * 删除人id
     */
    @TableField(value = "DELETE_USER_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long deleteUserId;

    /**
     * 删除人姓名
     */
    @TableField(value = "DELETE_NAME")
    private String deleteName;

    /**
     * 是否删除
     */
    @TableField(value = "DELETE_FLAG")
    private Long deleteFlag;

    private static final long serialVersionUID = 1L;
}
